"use strict"

/**
 * 辽宁政府集中采购网
 *  
 */

var Base = require("./base");
var lnzc_spider = new Base();
lnzc_spider.name = "辽宁政府集中采购网";
lnzc_spider.encode = "utf-8";
lnzc_spider.page = 2;


lnzc_spider.getPageUrl = function (pg) {
    if (pg == 1)
        return "http://www.lnzc.gov.cn/SitePages/AfficheListAll1.aspx";
    else
        return "http://www.lnzc.gov.cn/SitePages/AfficheListAll2.aspx";
};

lnzc_spider.getItems = function ($) {
    var items = [];
    $("div.col-xs-8  ul li span a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.attr("title");
        item.url = "http://www.lnzc.gov.cn" + e.attr("href");
        item.source = lnzc_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = lnzc_spider;